package com.hongli.blog.mapper;

import com.hongli.blog.entity.UserDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Usermapper {

    List<UserDao> SelectAllUser();

    UserDao SelectUser(@Param("username") String username, @Param("userpassword") String userpassword);

    UserDao SelectUserName(@Param("userid") int userid);

    List<UserDao> SelectUserRole();

    void Insertuser(UserDao userDao);
}
